package com.mb.app.service.impl;

import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.mb.app.domain.TbProductColor;
import com.mb.app.dao.TbProductColorMapper;
import com.mb.app.domain.TbProductInfo;
import com.mb.app.service.ITbProductColorService;
import org.apache.commons.lang3.StringUtils;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * <p>
 * 商品颜色  服务实现类
 * </p>
 *
 * @author liliping
 * @since 2019-04-02
 */
@Service
public class TbProductColorServiceImpl extends ServiceImpl<TbProductColorMapper, TbProductColor> implements ITbProductColorService {

    @Override
    public int insertSelective(TbProductColor tbProductColor) {
        return this.baseMapper.insertSelective(tbProductColor);
    }

    @Override
    public List<TbProductColor> getProductColorList(Map<String, Object> colorMap) {
        return this.baseMapper.selectByColorList(colorMap);
    }

    @Override
    public TbProductColor selectByProductColor(Map<String, Object> colorMap) {
        return this.baseMapper.selectByProductColor(colorMap);
    }
}
